import logging

logging.getLogger().setLevel("DEBUG")

logging.debug("我是调试级别")
logging.info("通知")
logging.error("错误")
logging.warning("警告")
logging.critical("致命")